package cn.itsource.org.service.Impl;


import cn.itsource.org.domain.Employee;
import cn.itsource.org.mapper.Employeemapper;
import cn.itsource.org.query.BaseQuey;
import cn.itsource.org.service.Employeeservice;
import cn.itsource.org.util.JSONResult;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeserviceImpl implements Employeeservice {
    @Autowired
    Employeemapper employeemapper;

    @Override
    public void insert(Employee employee) {

    }

    @Override
    public void update(Employee employee) {

    }

    @Override
    public List<Employee> findAll() {

        return employeemapper.selectAll();
    }

    @Override
    public void delete(Long id) {

    }

    @Override
    public void deleteBatch(List<Long> id) {

    }

    @Override
    public void pageList(BaseQuey baseQuey) {
        PageHelper.startPage(baseQuey.getPage(),baseQuey.getRows());
//        PageInfo pageList = employeemapper.findPageList1(baseQuey);

    }

}
